class CreateShangpins < ActiveRecord::Migration
  def self.up
    create_table :shangpins do |t|
      t.string :biaoti
      t.string :neirong
      t.string :tupian
      t.string :url
      t.decimal :jiage
      t.decimal:laojiage
      t.integer :shuliang

      t.timestamps
    end
  end

  def self.down
    drop_table :shangpins
  end
end
